from PyQt5.QtCore import pyqtSignal
from PyQt5.QtWidgets import QLabel

#重写Qlabel
class EQLabel(QLabel):
    #添加鼠标按压Label信号
    mousePress=pyqtSignal()
    def __init__(self,parent):
        super().__init__(parent)
    #定义鼠标按压Label事件
    def mousePressEvent(self,QMouseEvent):
        self.mousePress.emit()


